<template>
	<view id="pagHome" class="pageBox">
		<text class="title">home</text>
		<button type="default" @click="goto('/pages/deviceList/deviceList')">通过方法跳转到about页面</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onReady () {
			var page = getCurrentPages()
			console.log('page',page.route)
		},
		methods: {
			goto(url) {
				uni.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style lang="scss">
	#pagHome {
		background-color: $uni-bg-color-grey;

		.title {
			font-size: 30rpx;
			;
			color: $uni-color-primary;
		}
	}

	.title {
		color: #f00;
	}
</style>
